import Home from '../views/home/Home.vue';
import Center from '../views/center/Center.vue';
import UserAdd from '../views/user-manager/UserAdd.vue';
import UserLists from '../views/user-manager/UserLists.vue';
import NewsAdd from '../views/news-manager/NewsAdd.vue';
import NewsLists from '../views/news-manager/NewsLists.vue';
import ProductAdd from '../views/product-manager/ProductAdd.vue';
import ProductLists from '../views/product-manager/ProductLists.vue';
import NotFound from '../views/not-found/NotFound.vue';

const RouterConfig = [
	{
		path: '/home',
		component: Home,
	},
	{
		path: '/',
		redirect: '/home',
	},
	{
		path: '/index',
		redirect: '/home',
	},
	{
		path: '/center',
		component: Center,
	},
	{
		path: '/user-manager/adduser',
		component: UserAdd,
	},
	{
		path: '/user-manager/userlists',
		component: UserLists,
	},
	{
		path: '/news-manager/addnews',
		component: NewsAdd,
	},
	{
		path: '/news-manager/newslists',
		component: NewsLists,
	},
	{
		path: '/product-manager/addproduct',
		component: ProductAdd,
	},
	{
		path: '/product-manager/productlists',
		component: ProductLists,
	},
	{
		path: '/:pathMatch(.*)*',
		name: 'NotFound',
		component: NotFound,
	},
];

export default RouterConfig;
